package org.cid54.bukkit.command;

import org.cid54.bukkit.command.util.PlayerCommand;
import org.bukkit.event.player.PlayerChatEvent;
import org.cid54.bukkit.Cid54PlayerListener;

/**
 *
 * @author Cid54
 */
public class EmptyCommand implements PlayerCommand {

    public boolean execute(String command, PlayerChatEvent event, Cid54PlayerListener listener) {
        event.getPlayer().getInventory().clear();

        return true;
    }

    public String getCommand() {
        return "empty";
    }

    public String getHelpText() {
        return "Empties your inventory";
    }
}
